package com.demo.auth.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @author MyPC
 */
@Data
@ApiModel("登录表单")
public class LoginForm {

    @ApiModelProperty(value = "账号（必填）", required = true)
    @NotEmpty(message = "请填写账号")
    private String ak;

    @ApiModelProperty(value = "登录类型（必填）1账号密码，2短信验证码，3邮箱验证码，4微信扫码", required = true)
    @NotEmpty(message = "请选择登录类型")
    private String lt;

    @ApiModelProperty(value = "密码（账号密码登录必填）")
    private String pk;

    @ApiModelProperty(value = "验证码id（验证码对应的id索引）")
    private String ckId;

    @ApiModelProperty(value = "验证码（登录时填写图片验证码，短信和邮箱则填写发送的验证码）")
    private String ck;

    @ApiModelProperty(value = "rsa秘钥id（加密传输的秘钥id索引）")
    private String rkId;
}
